home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Demos / Delphi.Net / CLR / AppDomainLoader / DomainLoader.dpr < prev    next >
Encoding:
Text File  |  2004-10-22  |  3.8 KB  |  94 lines

  1. (*********************************************************)
  2. (*      Delphi for .NET Application Domain demo          *)
  3. (*      Written by: Chua Chee Wee, Singapore             *)
  4. (*      chuacw@rightsecurity.biz                         *)
  5. (*      Right Security Consultants                       *)
  6. (*      http://www.rightsecurity.biz                     *)
  7. (*                                                       *)
  8. (*********************************************************)
  9. //
  10. // 1.  Demonstrates how to create an application domain.
  11. //
  12. // 2.  Demonstrates how to call a known method from a known class
  13. //     implemented in a known namespace.
  14. //
  15.  
  16. program DomainLoader;
  17.  
  18.  
  19.  
  20. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.dll'}
  21. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Data.dll'}
  22. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Drawing.dll'}
  23. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Windows.Forms.dll'}
  24. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.XML.dll'}
  25. {$R 'LoadAsm.resources' 'LoadAsm.resx'}
  26. //
  27. // General Information about an assembly is controlled through the following
  28. uses
  29.   System.Reflection,
  30.   System.Runtime.CompilerServices,
  31.   System.Windows.Forms,
  32.   LoadAsm in 'LoadAsm.pas' {LoadAsm.TWinFormAssemblyLoaderGUI: System.Windows.Forms.Form},
  33.   LoadAsmImpl in 'LoadAsmImpl.pas';
  34.  
  35. // set of attributes. Change these attribute values to modify the information
  36. // associated with an assembly.
  37. //
  38. [assembly: AssemblyTitle('')]
  39. [assembly: AssemblyDescription('')]
  40. [assembly: AssemblyConfiguration('')]
  41. [assembly: AssemblyCompany('')]
  42. [assembly: AssemblyProduct('')]
  43. [assembly: AssemblyCopyright('')]
  44. [assembly: AssemblyTrademark('')]
  45. [assembly: AssemblyCulture('')]
  46.  
  47. //
  48. // Version information for an assembly consists of the following four values:
  49. //
  50. //      Major Version
  51. //      Minor Version 
  52. //      Build Number
  53. //      Revision
  54. //
  55. // You can specify all the values or you can default the Revision and Build Numbers 
  56. // by using the '*' as shown below:
  57.  
  58. [assembly: AssemblyVersion('1.0.*')]
  59.  
  60. //
  61. // In order to sign your assembly you must specify a key to use. Refer to the 
  62. // Microsoft .NET Framework documentation for more information on assembly signing.
  63. //
  64. // Use the attributes below to control which key is used for signing.
  65. //
  66. // Notes: 
  67. //   (*) If no key is specified, the assembly is not signed.
  68. //   (*) KeyName refers to a key that has been installed in the Crypto Service
  69. //       Provider (CSP) on your machine. KeyFile refers to a file which contains
  70. //       a key.
  71. //   (*) If the KeyFile and the KeyName values are both specified, the 
  72. //       following processing occurs:
  73. //       (1) If the KeyName can be found in the CSP, that key is used.
  74. //       (2) If the KeyName does not exist and the KeyFile does exist, the key 
  75. //           in the KeyFile is installed into the CSP and used.
  76. //   (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
  77. //       When specifying the KeyFile, the location of the KeyFile should be
  78. //       relative to the project output directory. For example, if your KeyFile is
  79. //       located in the project directory, you would specify the AssemblyKeyFile
  80. //       attribute as [assembly: AssemblyKeyFile('mykey.snk')], provided your output
  81. //       directory is the project directory (the default).
  82. //   (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
  83. //       documentation for more information on this.
  84. //
  85. [assembly: AssemblyDelaySign(false)]
  86. [assembly: AssemblyKeyFile('')]
  87. [assembly: AssemblyKeyName('')]
  88.  
  89. [STAThread]
  90. begin
  91.   Application.Run(LoadAsm.TWinFormAssemblyLoaderGUI.Create);
  92. end.
  93.  
  94.